package com.model;

import java.util.Date;

/**
 *
 * @author Lang Van Hao
 */
public class AttachFile {

    private int attachFileID;
    private int defectID;
    private String fileName;
    private String path;
    private String description;
    private Date createDate;

    /**
     * Contructor for AttachFileClass
     */
    public AttachFile() {
    }

    /**
     * Contructor for AttachFileClass
     * @param attachFileId
     * @param defectID
     * @param fileName
     * @param path
     * @param description
     * @param createDate
     */
    public AttachFile(int attachFileId, int defectID, String fileName, String path,
            String description, Date createDate) {
        this.setData(attachFileId, defectID, fileName, path, description, createDate);
    }

    /**
     * Method to set data for AttachFileClass
     * @param attachFileId
     * @param defectID
     * @param fileName
     * @param path
     * @param description
     * @param createDate
     */
    public void setData(int attachFileId, int defectID, String fileName, String path,
            String description, Date createDate) {
        this.setAttachFileID(attachFileID);
        this.setDefectID(defectID);
        this.setFileName(fileName);
        this.setPath(path);
        this.setDescription(description);
        this.setCreateDate(createDate);
    }

    /**
     * @return the attachFileID
     */
    public int getAttachFileID() {
        return attachFileID;
    }

    /**
     * @param attachFileID the attachFileID to set
     */
    public void setAttachFileID(int attachFileID) {
        this.attachFileID = attachFileID;
    }

    /**
     * @return the defectID
     */
    public int getDefectID() {
        return defectID;
    }

    /**
     * @param defectID the defectID to set
     */
    public void setDefectID(int defectID) {
        this.defectID = defectID;
    }

    /**
     * @return the fileName
     */
    public String getFileName() {
        return fileName;
    }

    /**
     * @param fileName the fileName to set
     */
    public void setFileName(String fileName) {
        this.fileName = fileName;
    }

    /**
     * @return the path
     */
    public String getPath() {
        return path;
    }

    /**
     * @param path the path to set
     */
    public void setPath(String path) {
        this.path = path;
    }

    /**
     * @return the description
     */
    public String getDescription() {
        return description;
    }

    /**
     * @param description the description to set
     */
    public void setDescription(String description) {
        this.description = description;
    }

    /**
     * @return the createDate
     */
    public Date getCreateDate() {
        return createDate;
    }

    /**
     * @param createDate the createDate to set
     */
    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }
}
